FIND_PATH(LIBGW32C_INCLUDE_DIR NAMES "unistd.h" PATH_SUFFIXES "include/glibc")
FIND_LIBRARY(LIBGW32C_LIBRARY NAMES libgw32c PATH_SUFFIXES "lib")

INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(LIBGW32C DEFAULT_MSG LIBGW32C_INCLUDE_DIR LIBGW32C_LIBRARY)

MARK_AS_ADVANCED(LIBGW32C_INCLUDE_DIR LIBGW32C_LIBRARY)